@echo off

rem this is to for user to choose

:choice

echo ################################################
echo ##git pull
echo ##choose:
echo ##      A=pull
echo ##      B=no pull
echo ##      q=exit:
echo ################################################

rem check the choice info

set /P action1=pls choose your action:

if /I "%action1%"=="A" goto gitpull
if /I "%action1%"=="B" goto serve
if /I "%action1%"=="q" goto quit

:gitpull

echo "git pull"

git pull

goto serve

:serve
echo ################################################
echo ##npm run serve
echo ##choose:
echo ##      A=dev
echo ##      B=staging
echo ##      C=prod
echo ##      q=exit:
echo ################################################

set /P action2=pls choose your action:

if /I "%action2%"=="A" (
	npm run serve:dev
)
if /I "%action2%"=="B" (
	npm run serve:staging
)
if /I "%action2%"=="C" (
	npm run serve:prod
)
if /I "%action2%"=="q" goto quit

:quit

echo existing ..

pause

exit

